Code Runner 亂碼問題


  1. 安裝code runner插件

  1. 安裝完畢上方會出現執行按鈕

  2. 執行上變得非常方便跟美觀,輸出在OUTPUT端

  3. 但在中文支援部分會出現亂碼

  4. 需要針對輸出時設定為 UTF-8

  5. 增加設定值

    "code-runner.executorMap": {
             "java": "cd $dir && javac -encoding utf8 $fileName && java -Dfile.encoding=UTF-8 $fileNameWithoutExt",
             "python": "set PYTHONIOENCODING=utf8 && python -u"
     },
    
  6. 大功告成!

#code runner #visual code #Python






你可能感興趣的文章

JAVA筆記_反射reflection

JAVA筆記_反射reflection

Python -「快速」算出兩排序數列中重複的次數

Python -「快速」算出兩排序數列中重複的次數

Node.appendChild() vs. Element.append()

Node.appendChild() vs. Element.append()






留言討論